import React, { Component } from "react";
import { highquality, topList } from "../../api/playlists";
export default class Playlists extends Component {
  constructor(props) {
    super();
    this.state = {
      // 选中分类索引
      selectIndex: 0,
      cats: [
        "全部",
        "欧美",
        "华语",
        "流行",
        "说唱",
        "摇滚",
        "民谣",
        "电子",
        "轻音乐",
        "影视原声",
        "ACG",
        "怀旧",
        "治愈",
        "旅行",
      ],
    };
  }
  componentDidMount() {
    this.loadHighquality();
  }
  async loadHighquality() {
    const res = await highquality({
      cat: this.state.cats[this.state.selectIndex],
    });
    const { code, playlists } = res.data;
    if (code === 200) {
      console.log(res);
      this.setState({
        topName: playlists[0].
      })
      adType: 0
anonimous: false
cloudTrackCount: 0
commentCount: 314
commentThreadId: "A_PL_0_621155019"
copywriter: "经典永恒，岁月留声"
coverImgId: 109951164807510930
coverImgId_str: "109951164807510929"
coverImgUrl: "http://p3.music.126.net/PZqH8c2ZZNwbR8S6ZcwaJw==/109951164807510929.jpg"
coverStatus: 3
createTime: 1488764039690
creator: {defaultAvatar: false, province: 530000, authStatus: 0, followed: false, avatarUrl: "http://p1.music.126.net/F7rbsWu7Io6xz1kQFhvoAQ==/109951166051235223.jpg", …}
description: "封面：罗马假日\n奥黛丽·赫本 Audrey Hepburn & 格利高里·派克 Gregory Peck\n\n经典永恒，岁月留声\n\n歌单收集的是1970年代以前美国部分经典电影的原声，大部分是好莱坞黄金时代的电影，类型有歌舞片、喜剧片、西部片和部分黑色电影。\n\n☆部分参考美国电影学会（AFI）百年百大系列\n1.百大电影歌曲\n2.百大经典电影\n3.百大电影配乐\n\n排序无先后\n\n1.罗马假日(非原声，契合主题MV歌曲)\n2.蒂凡尼的早餐\n3.雨中曲\n4-5.毕业生\n6.卡萨布兰卡\n7.纽伦堡的审P\n8.控方证人\n9.龙凤配\n10.甜姐儿\n11-12.绅士爱美人\n13.大江东去\n14.吉尔达\n15.乱世佳人\n16.魂断蓝桥\n17.亮眼睛\n18.生活多美好\n19-20.一夜F流\n21.城市之光\n22.粉红豹\n23.红楼艳史\n24.礼帽\n25.随我婆娑\n26.第四十二街\n27.郎心似铁\n28.热情如火\n29.摇摆乐时代\n30.与我同行\n31.一个明星的诞生\n32.1938年广播大会\n33.脂粉双枪侠\n34.花开蝶满枝\n35.摩洛哥之路\n36.花都艳舞\n37.画航璇宫\n38.龙凤斗智\n39.春风无限恨\n40.妙女郎\n41.假日旅馆\n42火树银花\n43.金粉世界\n44.绿野仙踪\n45.音乐之声\n46.欢乐满人间\n47.窈窕淑女\n48.木偶奇遇记\n49.南方之歌\n50.白雪公主和七个小矮人\n51.公民凯恩\n52.胜利之歌\n53.暴风雨\n54.封面女郎\n55.欲望号街车\n56.日落大道\n57.双重赔偿\n58.锦城春色\n59.红男绿女\n60.篷车队\n61.迷魂记\n62.惊魂记\n63.扬帆\n64.西北偏北\n65.爱德华大夫\n66.擒凶记\n67.国王与我\n68.日瓦戈医生\n69.杀死一只知更鸟\n70.南太平洋\n71.乞丐与D妇\n72.无因的反叛\n73.西区故事\n74.醉乡情断\n75.雌雄大盗\n76.午夜牛郎\n77.逍遥骑士\n78.西部开拓史\n79.锦绣大地\n80.关山飞渡\n81.正午\n82.双虎屠龙\n83.赤胆屠龙\n84.碧血金沙\n85.愤怒的葡萄\n86.虎豹小霸王\n87侠骨柔情\n88The Wild Bunch\n89豪勇七蛟龙\n90十诫\n91出埃及记\n92宾虚\n93埃及艳后\n94侠盗罗宾汉\n95金刚\n96脂粉猫王\n97黑板丛林\n98.007:金手指\n99奇爱博士\n100.2001:太空漫游"
highQuality: true
id: 621155019
name: "岁月唱片机，好莱坞老电影经典原声"
newImported: false
ordered: true
playCount: 3507375
privacy: 0
recommendInfo: null
shareCount: 1056
specialType: 0
status: 0
subscribed: null
subscribedCount: 77659
subscribers: [{…}]
tag: "影视原声"
tags: (3) ["影视原声", "经典", "欧美"]
totalDuration: 9
trackCount: 100
trackNumberUpdateTime: 1622709889963
trackUpdateTime: 1624231588268
tracks: null
updateTime: 1623940065632
userId: 311877725
    }
  }
  render() {
    return <div>最新音乐</div>;
  }
}
